package cn.shentianlan.mapper;

import cn.shentianlan.criteria.StudentCriteria;
import cn.shentianlan.domain.entity.Student;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author 陈俊源
 * @Description TODO
 * @Date 2021/4/11
 * @Version 1.0
 */
@Repository
public interface StudentMapper {

    void saveStudent(Student student);

    void updateStudent(Student student);

    Student getStudentById(Long id);

    List<Student> findStudentByCriteria(StudentCriteria criteria);

    Integer getCount(StudentCriteria criteria);

    void deleteStudentById(Long id);
}
